#pragma once
#include "framework.h"

using namespace poly;

class Game : public IGame
{
public:
	Game( HINSTANCE hInst, HWND hWnd );
	~Game();

	virtual void onCreateGraphics( D3DDevice device );
	virtual void onResetGraphics( D3DDevice device );

	virtual void onFrameMove(float dt);
	virtual void onFrameRender(float dt);

	virtual void onLostGraphics();
	virtual void onDestroyGraphics();

private:
	D3DDevice	m_d3dDevice;

	SInput		m_input;
	Camera		m_camera;

	poly::Polygon	m_polygon;
	std::vector<poly::Polygon> m_polygonVector;

	poly::PolygonView	m_polygonView;
	float3			m_polygon_center;
	float3			m_polygon2_center;

	poly::Polygon	m_polygonMove;
	PolygonView		m_polygonMoveView;
	float3			m_polygonMove_center;
	float3			m_polygonMove_destination;

	float3			nextPoint;

	poly::pathfinder path;

	bool			pathOn;
	bool			moving;
};
